package com.vincce.sport.entity;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import com.vincce.sport.core.utils.ConvertUtil;

/**
 * 预赛赛程
 * @author EX-HEQUAN
 *
 */
public class PreliminaryContest {

	private Long id;
	
	/**
	 * 赛季
	 */
	private Long seasonId;
	
	/**
	 * 队伍1
	 */
	private Long teamId;
	
	/**
	 * 队伍2
	 */
	private Long teamIdTwo;
	
	/**
	 * 校区
	 */
	private Long schoolId;
	
	/**
	 * 场地
	 */
	private String site;
	
	/**
	 * 日期
	 */
	private Date date;
	
	/**
	 * 时间
	 */
	private String time;
	
	/**
	 * 参数类型（1.预赛；2.淘汰赛）
	 */
	private Integer type;
	
	private Long createUser;
	
	private Date createTime;
	
	private Long updateUser;
	
	private Date updateTime;
	
	private String teamName;
	
	private String teamTwoName;
	
	private String schoolName;
	
	private Integer teamScore;	//球队1得分
	
	private Integer teamTwoScore;		//球队2得分
	
	private String seasonName;
	
	private Integer dateCount;
	private String teamGroupName;
	private String teamGroupName2;
	public Integer getDateCount() {
		return dateCount;
	}

	public void setDateCount(Integer dateCount) {
		this.dateCount = dateCount;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSeasonId() {
		return seasonId;
	}

	public void setSeasonId(Long seasonId) {
		this.seasonId = seasonId;
	}

	public Long getTeamId() {
		return teamId;
	}

	public void setTeamId(Long teamId) {
		this.teamId = teamId;
	}

	public Long getTeamIdTwo() {
		return teamIdTwo;
	}

	public void setTeamIdTwo(Long teamIdTwo) {
		this.teamIdTwo = teamIdTwo;
	}

	public Long getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(Long schoolId) {
		this.schoolId = schoolId;
	}

	public String getSite() {
		return site;
	}

	public void setSite(String site) {
		this.site = site;
	}

	public String getDate() {
		return ConvertUtil.format("yyyy-MM-dd", date) ;
	}

	public void setDate(Object date) throws ParseException {
		if(date instanceof Date)
            this.date = (Date)date;
        if (date instanceof String)
            this.date=new SimpleDateFormat("yyyy-MM-dd").parse(date.toString());
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public Long getCreateUser() {
		return createUser;
	}

	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(Long updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getTeamName() {
		return teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}

	public String getTeamTwoName() {
		return teamTwoName;
	}

	public void setTeamTwoName(String teamTwoName) {
		this.teamTwoName = teamTwoName;
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getTeamScore() {
		return teamScore;
	}

	public void setTeamScore(Integer teamScore) {
		this.teamScore = teamScore;
	}

	public Integer getTeamTwoScore() {
		return teamTwoScore;
	}

	public void setTeamTwoScore(Integer teamTwoScore) {
		this.teamTwoScore = teamTwoScore;
	}

	public String getSeasonName() {
		return seasonName;
	}

	public void setSeasonName(String seasonName) {
		this.seasonName = seasonName;
	}

	public String getTeamGroupName() {
		return teamGroupName;
	}

	public void setTeamGroupName(String teamGroupName) {
		this.teamGroupName = teamGroupName;
	}

	public String getTeamGroupName2() {
		return teamGroupName2;
	}

	public void setTeamGroupName2(String teamGroupName2) {
		this.teamGroupName2 = teamGroupName2;
	}

	
}
